﻿<controls:MetroContentControl x:Class="Wix.Win8SetupBootstrapper.Views.FinishErrorPageView"
                              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                              xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
                              xmlns:viewModels="clr-namespace:Wix.Win8SetupBootstrapper.ViewModels"
                              mc:Ignorable="d"
                              d:DesignHeight="300" d:DesignWidth="450"
                              d:DataContext="{d:DesignInstance viewModels:FinishErrorPageViewModel }">
    <controls:MetroContentControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary
                    Source="pack://application:,,,/MahApps.Metro;component/Styles/controls.textblock.xaml" />
                <!--                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/controls.checkbox.xaml" />-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </controls:MetroContentControl.Resources>
    <DockPanel>
        <TextBlock Text="Installation failed to finish" DockPanel.Dock="Top"
                   Style="{StaticResource MetroTextBlock}" FontSize="24"/>
        <TextBlock Margin="0,15,0,0" Text="{Binding RootViewModel.ErrorMessage}" TextWrapping="Wrap" FontSize="20"
                   DockPanel.Dock="Top" Style="{StaticResource MetroTextBlock}"/>
    </DockPanel>
</controls:MetroContentControl>